﻿using System;
using System.Collections.Generic;
using System.Configuration;
using System.Linq;
using System.Web;

namespace WebCore.Utility
{
    public static class WebSiteConfig
    {
        /// <summary>
        /// 用户Session
        /// </summary>
        public const string USER_SESSION_NAME = "_USER_SESSION_NAME";
        /// <summary>
        /// 根据Key取Value值
        /// </summary>
        /// <param name="key"></param>
        public static string GetWebConfigValue(string key)
        {
            return ConfigurationManager.AppSettings[key].ToString().Trim();
        }
    }
}